<?php


class Lottery extends Admin_controller
{
	
	
	public function __construct()
	{
		parent::__construct();
		$this->load->model('lottery_mdl','lottery');
	}
	
	public function lotteryn()
	{
		
		$lotteryn = $this->lottery->get_lottery_num_by_rewardid(1);
		print_r($lotteryn);
	}
	
	public function test()
	{		
		//$flag = $this->lottery->set_lottery('1','4','349490156');
		//print_r($flag);
		$flag = $this->lottery->get_one_lottery(1,4);
		print_r($flag);
		
	}
	
}